package com.social.service.collect.impl;

import com.social.entity.HousekeeperCollect;
import com.social.mapper.HousekeeperCollectMapper;
import com.social.service.collect.CollectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service(value = "collectService")
public class CollectServiceImpl implements CollectService {
    @Autowired
    private HousekeeperCollectMapper housekeeperCollectMapper;
    @Override
    public int deleteByPrimaryKey(String id) {
        return housekeeperCollectMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(HousekeeperCollect record) {
        return housekeeperCollectMapper.insert(record);
    }

    @Override
    public int insertSelective(HousekeeperCollect record) {
        return housekeeperCollectMapper.insertSelective(record);
    }

    @Override
    public HousekeeperCollect selectByPrimaryKey(String id) {
        return housekeeperCollectMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(HousekeeperCollect record) {
        return housekeeperCollectMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(HousekeeperCollect record) {
        return housekeeperCollectMapper.updateByPrimaryKey(record);
    }

    @Override
    public int deleteByAdminId(Map<String,Object> params) {
        return housekeeperCollectMapper.deleteByAdminId(params);
    }
}
